package view;

import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;

/**
 * This class provides an information GUI for the start of the game and a later call from the player.
 * It shows an introduction and the rules of the game.
 */


public class InformationGui extends JFrame {

	private static final long serialVersionUID = 1L;

	
	/**
	 * Creates a GUI and set the text to be displayed
	 */
	public void createGui()
	{
		this.setTitle("Game Information");
		this.setSize(600, 300);
		this.setResizable(false);
		this.setAlwaysOnTop(true);
		
		JPanel informationPanel = new JPanel();
		JTextArea text = new JTextArea();
		text.setEditable(false);
		text.setText("\t\tWelcome to Super-Brain\n\n" +
				"The game is about guessing a combination colors that I have created randomly.\n" +
				"I will give you hints on the right side after you have given me your guess.\n" +
				"The number of red circles equals the number of right colors on the right place.\n" +
				"The number of white circles equals the number of right colors on the wrong place.\n\n\n\n" +
				"\t\tHave fun");
		
		text.setFont(new Font("Arial", Font.PLAIN, 14));
		informationPanel.add(text);
		this.add(informationPanel);
		
	}
	
	
	
	
	
}
